Skip to content

debt(users): Make User object constructor argument mandatory#59694

Draft
artonge wants to merge 3 commits into
masterfrom
artonge/debt/user_args
Draft

debt(users): Make User object constructor argument mandatory#59694
artonge wants to merge 3 commits into
masterfrom
artonge/debt/user_args

Conversation

@artonge
Copy link
Copy Markdown
Collaborator

@artonge artonge commented Apr 17, 2026

We already have a factory method to build User objects, so let's use it and stop with the conditional arguments and properties. This will make adding new constructor arguments easier in the future.

One nitpick is that I kept the $backend argument optional, the reason being that in Collectives and Groupfolders, we are creating a dummy user without a backend because the files_versions API needs one.

Adaptations in apps:

@artonge artonge force-pushed the artonge/debt/user_args branch 5 times, most recently from 28062e9 to a7d032e Compare April 17, 2026 15:20
@artonge artonge force-pushed the artonge/debt/user_args branch 8 times, most recently from 43c4463 to 9b30bac Compare April 30, 2026 13:51
@artonge artonge added enhancement 2. developing Work in progress feature: users and groups php Pull requests that update Php code labels Apr 30, 2026
@artonge artonge self-assigned this Apr 30, 2026
@artonge artonge added this to the Nextcloud 34 milestone Apr 30, 2026
@artonge artonge force-pushed the artonge/debt/user_args branch 11 times, most recently from dd781af to 822edc3 Compare May 5, 2026 17:05
@artonge artonge force-pushed the artonge/debt/user_args branch 4 times, most recently from 0464ab3 to 22b842a Compare May 7, 2026 19:53
artonge added 3 commits May 12, 2026 11:52
Signed-off-by: Louis Chmn <louis@chmn.me>
… User object

Signed-off-by: Louis Chmn <louis@chmn.me>
Signed-off-by: Louis Chmn <louis@chmn.me>
@artonge artonge force-pushed the artonge/debt/user_args branch from 22b842a to 22eb442 Compare May 12, 2026 09:52
@artonge artonge marked this pull request as ready for review May 13, 2026 08:00
@artonge artonge requested a review from a team as a code owner May 13, 2026 08:00
@artonge artonge requested review from ArtificialOwl, icewind1991, leftybournes and salmart-dev and removed request for a team May 13, 2026 08:00
@artonge artonge added 3. to review Waiting for reviews pending documentation This pull request needs an associated documentation update and removed 2. developing Work in progress labels May 13, 2026
@artonge artonge marked this pull request as draft May 13, 2026 08:16
@artonge artonge added 2. developing Work in progress and removed 3. to review Waiting for reviews labels May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress enhancement feature: users and groups pending documentation This pull request needs an associated documentation update php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant